import { createRouter, createWebHistory } from 'vue-router'

export const constantRoutes = [
  {
    path: '/',
    children: [
        {
            name: 'home',
            path: '/',
            component: () => import('@/views/home/index.vue'),
            hidden: true
          },
          {
            name: 'category',
            path: '/category',
            component: () => import('@/views/category/index.vue'),
            hidden: true
          }
    ]
  }
]

const router = createRouter({
  history: createWebHistory('/'),
  routes: constantRoutes
})

export default router